<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/4/9
  Time: 20:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%----%>
<% request.setCharacterEncoding("UTF-8"); %>
<html>
<head>
    <meta charset="UTF-8">
    <title>搜索页面</title>
</head>
<body>
<%
    String name = request.getParameter("name");//姓名输入框里的值
    if(name == null){
        name = "";
    }
    System.out.println("搜索框的名字为："+name);
%>
<form action="search.jsp" method="post" >
    <input placeholder="请输入商品名称" style="padding: 10px" name="name"  value='<%=name%>'/>
    <button style="background: #bf2620;color: #fff;padding: 10px" type="submit">确定</button>
</form>
<a href="add.jsp"><button>新增</button></a>
<jsp:include page="phone.jsp">
    <jsp:param name="name" value='<%=name%>'/>
</jsp:include>

</body>
</html>
